package net.openvision.music.model;

import java.util.HashMap;
import java.util.Map;

public class DocumentInformation {
	private DefaultScoreModel parent;
	private Map<String, String> information;

	public DocumentInformation(DefaultScoreModel parent) {
		this.parent = parent;
		information = new HashMap<String, String>();
	}

	public void setInformation(String name, String value) {
		information.put(name, value);
		parent.fireDocumentInformationChanged(name, value);
	}

	public String getInformation(String name) {
		return information.get(name);
	}
}
